REPLICATION FILES FOR Tabitha Bonilla, Alexandra Filindra, and Nazita Lajevardi,
How Source Cues Shape Evaluations of Group-Based Derogatory Political Messages,
Journal of Politics
Version October 27, 2021

To reproduce all analyses for the published article and the online appendix: 

  Download BonillaFilindraLajevardi-SourceCues-JOP-datafiles to a folder on your computer. 
  This folder contains the raw data and BonillaFilindraLajevardi-SourceCues-JOP.do, which
  runs the entire sequence of .do files. 

  Use Stata Version 15 or higher to run BonillaFilindraLajevardi-SourceCues-JOP.do.
  This do-file will call the appropriate data files, to clean the raw data, 
  produce the cleaned data file, and the out put files. 

  
To view all output without re-running the code: 

  BonillaFilindraLajevardi-SourceCues-JOP-datafiles  contains the raw data set, 
  BonillaFilindraLajevardi-SourceCues-JOP.do which runs all of the other .do files. 
  to clean the data, produce the output to create the figures, and produce
  appendix tables. Each study has a separate cleanup .do files in the study folder, 
  which cleans the raw data, and exports the cleaned data to create the figures, and
  creates the tables for the appendix. 


To create the figures: 

  Open figures.R, and run figures.R referencing the files in the output folder. 
  It depends on the text files produced by BonillaFilindraLajevardi-SourceCues-JOP.do.
  

To view the output files without running the code (see file names below): 

  Look in the folder named output which contains the
  cleaned data set for each study, figures, and output for the appendix tables.

To view variable definitions: 
  
  Look in the folder for each study. The files including questionaire.docx
  contain the question text for the survey questions along with the response codes 
  for each question. Definitions of variables from the coding analysis of the 
  open-ended responses for Study 4 can be found in the file labeled 
  coding_instructions1.docx and coding_instructions2.docx.
  
  
INDIVIDUAL FILE DESCRIPTIONS

\figures
	appendix_study1_appropriate.pdf				Appendix Figure E.1
	appendix_study1_black_inf.pdf				Appendix Figure G.9
	appendix_study1_character.pdf				Appendix Figure F.5
	appendix_study1_disrimination.pdf			Appendix Figure G.10
	appendix_study1_partisan.pdf				Appendix Figure J.13
	appendix_study1_partisaninteraction.pdf		Appendix Figure J.17
	appendix_study1_thermometer.pdf				Appendix Figure G.11
	appendix_study2_appropriate.pdf				Appendix Figure E.2
	appendix_study2_character.pdf				Appendix Figure F.6
	appendix_study2_dehumanization.pdf			Appendix Figure G.12
	appendix_study2_partisan.pdf				Appendix Figure J.14
	appendix_study2_partisansinteraction.pdf	Appendix Figure J.18
	appendix_study3_appropriate.pdf				Appendix Figure E.3
	appendix_study3_character.pdf				Appendix Figure F.7
	appendix_study3_partisan.pdf				Appendix Figure J.15
	appendix_study3_partisaninteraction.pdf		Appendix Figure J.19
	appendix_study4_appropriate.pdf				Appendix Figure E.4
	appendix_study4_character.pdf				Appendix Figure F.8
	appendix_study4_partisan.pdf				Appendix Figure J.16
	appendix_study4_solidarity.pdf				Appendix Figure J.20
	figure1_study1.pdf							Figure 1A
	figure1_study2.pdf							Figure 1B
	figure1_study3.pdf							Figure 1C
	figure1_study4.pdf							Figure 1D
	figure2_study1.pdf							Figure 2
	figure2_study2.pdf							Figure 3
	figure4_study3.pdf							Figure 4
	figure5_study4.pdf							Figure 5
	figure6_study4.pdf							Figure 6
	figure7_study4.pdf							Figure 7
	figure8.pdf									Figure 8

\Study1
	\tables
		study1_balance.tex						Appendix Table C.5
		study1_dvs.tex							Appendix Table C.9
		study1_summary.tex						Appendix Table C.1
	
	study1_cleaned.dta							Merged, cleaned, dataset for Study 1.
	study1_cleanup.do							Stata .do file that cleans and merges
													both parts of Study 1.
	study1a_cleaned.dta							Cleaned Stata dataset that contains the
													first half of Study 1. 
	study1a_data.dta							Raw data for the first half of Study 1.
	study1a_questionaire.docx					Variable codebook for first half of Study 1.
	study1b_data.dta							Raw data for the second half of Study 1.
	study1b_questionaire.docx					Variable codebook for second half of Study 1.

\Study2
	\tables
		study2_balance.tex						Appendix Table C.6
		study2_dvs.tex							Appendix Table C.10
		study2_summary.tex						Appendix Table C.2
		
	study2_cleaned.dta							Cleaned dataset for Study 2.
	study2_cleanup.do							Stata .do file that cleans the raw data for
													Study 2.
	study2_data.csv								Raw data for Study 2.
	study2_questionaire.docx					Variable codebook for Study 2.


\Study3_4
	\tables
		study3_balance.tex						Appendix Table C.7
		study3_dvs.tex							Appendix Table C.11
		study3_summary.tex						Appendix Table C.3
		study4_balance.tex						Appendix Table C.8
		study4_dvs.tex							Appendix Table C.12
		study4_summary.tex						Appendix Table C.3
		
	coding_instructions1.docx					Written instructions for RAs for round 1 of
													coding.
	coding_instructions2.docx					Written instructions for RAs for round 2 of
													coding.
	study3_4_cleanup.do							Stata .do file that cleans and creates the
													cleaned dataset for Studies 3 and 4.
	study3_4_data.tsv							Raw data for Studies 3 and 4.
	study3_4_questionaire.docx					Variable codebook for Studies 3 and 4.
	study3_cleaned.dta							Cleaned dataset for Study 3.
	study3_cleaned_coded.dta					Cleaned dataset for Study 3 combined with 
													RA codes.
	study3_coder1.dta							Stata dataset with first round RA codes by 
													coder 1.
	study3_coder1.txt							Raw data with first round RA codes by coder 1.
	study3_coder2.dta							Stata dataset with first round RA codes by 
													coder 2.
	study3_coder2.txt							Raw data with first round RA codes by coder 2.
	study4_cleaned.dta							Cleaned dataset for Study 4.
	study4_cleaned_coded.dta					Cleaned dataset for Study 4 combined with 
													RA codes.
	study4_coder1.dta							Stata dataset with first round RA codes by 
													coder 1.
	study4_coder1.txt							Raw data with first round RA codes by coder 1.
	study4_coder2.dta							Stata dataset with first round RA codes by 
													coder 2.
	study4_coder2.txt							Raw data with first round RA codes by coder 2.
	study4_data_coded_v2.dta					Stata dataset with second round RA codes.
	study4_v2_coder1.csv						Raw data with second round RA codes by coder 1.
	study4_v2_coder1.dta						Stata dataset with second round RA codes by coder 1.
	study4_v2_coder2.csv						Raw data with second round RA codes by coder 2.
	study4_v2_coder2.dta						Stata dataset with second round RA codes by coder 2.



BonillaFilindraLajevardi				Stata .do file that calls all other Stata .do files
-SourceCues-JOP.do							and creates the .log file.

Figures.r								R code that imports cleaned data and creates figures.

log.log									Stata log file.


